<?php
include 'lanewechat.php';

/**
 * 网页授权
 */
/**
 * Description: 获取CODE
 * @param $scope snsapi_base不弹出授权页面，只能获得OpenId;snsapi_userinfo弹出授权页面，可以获得所有信息
 * 将会跳转到redirect_uri/?code=CODE&state=STATE 通过GET方式获取code和state
 */
$redirect_uri = htmlspecialchars( $_GET['backUrl'] );
$redirect_uri = urldecode( $redirect_uri );
\LaneWeChat\Core\WeChatOAuth::getCode($redirect_uri, $state=1, $scope='snsapi_base');

//